<form id="form_edit_##example##_in_m111111" enctype="multipart/form-data" method="post" action="#" class="form">
  <input type="hidden" name="id" value="{$id}">
  <input type="hidden" name="datagrid_code" value="##example##_in_m111111">
  <div class="wrapper-form">
    <div id="form_content_edit_##example##_in_m111111"></div>
    <dl class="row">
      <dt class="tit">
        <label>状态</label>
      </dt>
      <dd class="opt">
        <label><input type="radio" value="1" checked="checked" name="status">启用</label>
        <label><input type="radio" value="2" name="status">禁用</label>
        <span class="err"></span>
      </dd>
    </dl>
  </div>
</form>
<script>
  $(function(){
    var subjectId = "{$id}";
    var subjectKeyword = "##example##_in_m111111";
    var datagridCode = "##example##_m111111";
    var formId = "#form_edit_" + subjectKeyword;
    var formHtml = $(formId).autoProduceFormHtml(datagridCode, 'edit');

    var formContentId = "#form_content_edit_" + subjectKeyword;
    $(formContentId).html(formHtml);
    $.parser.parse(formContentId);

    var loadData = getDetailInfo(subjectId);
    $(formId).form("load", loadData);

    function getDetailInfo(subjectId) {
      var data = {};
      $.ajax({
        url: '/api/PageToolbar/getPageToolbarInfo',
        async: false,
        type: 'post',
        data: {id: subjectId},
        success: function (resp) {
          if (1 == resp.code) {
            data = resp.data;
          }
        }
      });
      return data;
    }
  });
</script>